<div id="footermain">
    <div class="link">
        <table style="width: 100%;">
            <tr>
            <?php foreach($footer as $f){?>
                <td style="width: 25%;"><label class="title"><?=$f->name?></label> </td>
            <?php }?>
            </tr>
            <tr>
            <?php foreach($footer as $f){?>
                <td valign="top">
                <?php foreach ($f->content as $c) { ?>
                    <a href="<?=$c->link?>"><?=$c->name?></a> <br />
                <?php }?>
                </td>
            <?php }?> 
            </tr>  
        </table>
    </div>
    <!-- copy right -->
    <div class="copyright">
        <?=$copyright?>
    </div>
</div>
<!--END Footer-->



<!-- message offline -->
<!--<div style="bottom: 0px;right:0px;z-index: 999997; position: fixed;"><div style="position:relative; display:inline-block; text-align:center; box-shadow:0 0 2px #666666; -moz-box-shadow:0 0 2px #666666; -webkit-box-shadow:0 0 2px #666666; white-space:nowrap; border-radius:4px 4px 0 0; -moz-border-radius:4px 4px 0 0; -webkit-border-radius:4px 4px 0 0; font-size:13px; font-family:Arial,Verdana,Helvetica,sans-serif; line-height:26px; color:#ffffff; cursor:pointer; height:26px; padding:2px 2px 0; background:#ffffff;"><div style="line-height:26px; height:26px; padding:0 10px 0 25px; background:url() no-repeat 6px 6px #3d3d3d; font-size:13px; font-family:Arial,Verdana,Helvetica,sans-serif; line-height:26px; color:#ffffff;">Sorry, we are currently offline.</div></div></div>>
<!-- support online -->
<!--
<script type="text/javascript">var subiz_account_id = "3867";(function() { var sbz = document.createElement("script"); sbz.type = "text/javascript"; sbz.async = true; sbz.src = ("https:" == document.location.protocol ? "https://" : "http://") + "widget.subiz.com/static/js/loader.js?v="+ (new Date()).getFullYear() + ("0" + ((new Date()).getMonth() + 1)).slice(-2) + ("0" + (new Date()).getDate()).slice(-2); var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(sbz, s);})();</script>
-->